import request from '@/utils/request'

var basePath = '/alarmSet/alarmInfo/'

export function listAlarmInfo(query) {
  return request({
    url: basePath + 'list',
    method: 'get',
    params: query
  })
}

export function createAlarmInfo(data) {
  return request({
    url: basePath + 'create',
    method: 'post',
    data
  })
}

export function readAlarmInfo(data) {
  return request({
    url: basePath + 'read/' + data.id,
    method: 'get'
  })
}

export function updateAlarmInfo(data) {
  return request({
    url: basePath + 'update',
    method: 'post',
    data
  })
}

export function deleteAlarmInfo(data) {
  return request({
    url: basePath + 'delete/' + data.fentryid,
    method: 'delete'
  })
}
